﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreCms.Net.Model.FromBody
{
    /// <summary>
    /// 优惠券分发
    /// </summary>
    public class FMCouponDistribution
    {
        /// <summary>
        ///     序列
        /// </summary>
        [Display(Name = "序列")]
        [Required(ErrorMessage = "请提交优惠券序列")]
        public int id { get; set; }

        /// <summary>
        /// 分发方式
        /// </summary>
        [Display(Name = "分发方式")]
        [Required(ErrorMessage = "请提交优惠券分发方式")]
        public int distributionMode { get; set; }

        /// <summary>
        /// 用户序列
        /// </summary>
        [Display(Name = "用户序列")]
        [Required(ErrorMessage = "请提交优惠券用户序列")]
        public long userIdOrMobile { get; set; } = 0;

        /// <summary>
        /// 用户组类别
        /// </summary>
        [Display(Name = "用户组类别")]
        [Required(ErrorMessage = "请提交优惠券用户组类别")]
        public int userGrade { get; set; } = 0;

    }
}
